#include <stdio.h>
#include <string.h>

struct __attribute__((packed)) cat {
	char name[7];
	//int age;
	long long age;
	short a;
	short b;
	char c;
	char d;
};

typedef struct cat kitty;

int main(void)
{
	kitty alice;

	printf("size: %lu\n", sizeof (kitty));

	strcpy(alice.name, "Alice");
	printf("name: %s\n", alice.name);
	
	kitty* aliceptr = &alice;

	aliceptr->age = 42;
	printf("age: %lld\n", aliceptr->age);

	printf("&name: %p\n", &(alice.name));
	printf("&age: %p\n", &(alice.age));
	printf("&a: %p\n", &(alice.a));
	printf("&b: %p\n", &(alice.b));
	printf("&c: %p\n", &(alice.c));	
	printf("&d: %p\n", &(alice.d));

	return 0;
}
